from django.conf.urls import url

from news import views

urlpatterns = [
    # 每个路由信息都需要使用url函数来构造
    # url(路径, 视图)
    url(r'^top/$', views.TopAPIView.as_view()),
    url(r'^category/$', views.CategoryAPIView.as_view()),

]